package cn.yoline.xylink;

import android.os.Environment;

import com.ainemo.sdk.model.TokenInfo;
import com.ainemo.sdk.otf.VideoConfig;

import java.io.File;

/**
 * Copyright 2020 JxGIS
 *
 * @file XylinkStore
 * @auth linaisheng
 * Created on 2022/3/9.
 * Description：
 */
public class XylinkStore {

    //是否在会议中，已在会议不能继续加入
    private static boolean isOnMeeting;

    private TokenInfo tokenInfo;

    private static XylinkStore xylinkStore = new XylinkStore();

    private XylinkStore() {}

    public static XylinkStore getInstant() {
        return xylinkStore;
    }

    public boolean isIsOnMeeting() {
        return isOnMeeting;
    }

    public void setIsOnMeeting(boolean isOn) {
        isOnMeeting = isOn;
    }

    public void setTokenInfo(TokenInfo tokenInfo) {
        this.tokenInfo = tokenInfo;
    }

    public TokenInfo getTokenInfo() {
        return tokenInfo;
    }

    public static File getScreenShotDir() {
        File picDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
        File screenshotDir = new File(picDir, "Screenshot");
        if (!screenshotDir.exists()) {
            screenshotDir.mkdirs();
        }
        return screenshotDir;
    }



}